<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #2563eb;
            --secondary-color: #3b82f6;
            --accent-color: #f59e0b;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
        }

        body {
            margin: 0;
            padding: 0;
            background: #f5f5f5;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            border-radius: 40px;
        }

        .content {
            height: calc(100% - 120px);
            overflow-y: auto;
            background: var(--background-light);
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .bottom-nav {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 70px;
            background: white;
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid #eee;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
        }

        .nav-item.active {
            color: var(--primary-color);
        }

        .nav-item i {
            font-size: 24px;
            margin-bottom: 4px;
        }

        .header {
            padding: 15px;
            background: white;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header h1 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            color: var(--text-primary);
        }

        .order-tabs {
            display: flex;
            background: white;
            padding: 10px 15px;
            gap: 15px;
            overflow-x: auto;
            position: sticky;
            top: 49px;
            z-index: 99;
            border-bottom: 1px solid #eee;
        }

        .order-tabs::-webkit-scrollbar {
            display: none;
        }

        .tab-item {
            padding: 6px 16px;
            border-radius: 16px;
            font-size: 14px;
            color: var(--text-secondary);
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .tab-item.active {
            background: var(--primary-color);
            color: white;
        }

        .order-list {
            padding: 15px;
        }

        .order-item {
            background: white;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
        }

        .order-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f3f4f6;
        }

        .shop-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .shop-logo {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            object-fit: cover;
        }

        .shop-name {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .order-status {
            font-size: 14px;
            font-weight: 500;
        }

        .status-pending {
            color: var(--warning-color);
        }

        .status-delivering {
            color: var(--primary-color);
        }

        .status-completed {
            color: var(--success-color);
        }

        .status-cancelled {
            color: var(--danger-color);
        }

        .order-content {
            margin-bottom: 12px;
        }

        .order-dishes {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .order-price {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .order-price small {
            font-size: 14px;
            color: var(--text-secondary);
            font-weight: normal;
        }

        .order-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .order-btn {
            padding: 6px 16px;
            border-radius: 16px;
            font-size: 14px;
            border: 1px solid #e5e7eb;
            background: white;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .order-btn.primary {
            background: var(--primary-color);
            color: white;
            border: none;
        }

        .order-btn:hover {
            opacity: 0.9;
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="header">
            <h1>我的订单</h1>
        </div>

        <div class="order-tabs">
            <div class="tab-item active">全部</div>
            <div class="tab-item">待支付</div>
            <div class="tab-item">待配送</div>
            <div class="tab-item">配送中</div>
            <div class="tab-item">已完成</div>
            <div class="tab-item">已取消</div>
        </div>

        <div class="content">
            <div class="order-list">
                <div class="order-item">
                    <div class="order-header">
                        <div class="shop-info">
                            <img src="https://images.unsplash.com/photo-1552566626-52f8b828add9?w=100" alt="店铺logo" class="shop-logo">
                            <div class="shop-name">川味小馆</div>
                        </div>
                        <div class="order-status status-delivering">配送中</div>
                    </div>
                    <div class="order-content">
                        <div class="order-dishes">麻婆豆腐 × 2、水煮鱼 × 1</div>
                        <div class="order-price">
                            <small>共3件商品 实付</small>
                            ¥114
                        </div>
                    </div>
                    <div class="order-footer">
                        <button class="order-btn">联系商家</button>
                        <button class="order-btn primary">再来一单</button>
                    </div>
                </div>

                <div class="order-item">
                    <div class="order-header">
                        <div class="shop-info">
                            <img src="https://images.unsplash.com/photo-1562967914-608f82629710?w=100" alt="店铺logo" class="shop-logo">
                            <div class="shop-name">品味小厨</div>
                        </div>
                        <div class="order-status status-completed">已完成</div>
                    </div>
                    <div class="order-content">
                        <div class="order-dishes">红烧肉 × 1、清炒时蔬 × 1、米饭 × 2</div>
                        <div class="order-price">
                            <small>共4件商品 实付</small>
                            ¥60
                        </div>
                    </div>
                    <div class="order-footer">
                        <button class="order-btn">删除订单</button>
                        <button class="order-btn">评价</button>
                        <button class="order-btn primary">再来一单</button>
                    </div>
                </div>

                <div class="order-item">
                    <div class="order-header">
                        <div class="shop-info">
                            <img src="https://images.unsplash.com/photo-1563379926898-05f4575a45d8?w=100" alt="店铺logo" class="shop-logo">
                            <div class="shop-name">快乐餐厅</div>
                        </div>
                        <div class="order-status status-pending">待支付</div>
                    </div>
                    <div class="order-content">
                        <div class="order-dishes">炸鸡套餐 × 2</div>
                        <div class="order-price">
                            <small>共2件商品 待支付</small>
                            ¥76
                        </div>
                    </div>
                    <div class="order-footer">
                        <button class="order-btn">取消订单</button>
                        <button class="order-btn primary">立即支付</button>
                    </div>
                </div>

                <div class="order-item">
                    <div class="order-header">
                        <div class="shop-info">
                            <img src="https://images.unsplash.com/photo-1534422298391-e4f8c172dddb?w=100" alt="店铺logo" class="shop-logo">
                            <div class="shop-name">早餐店</div>
                        </div>
                        <div class="order-status status-cancelled">已取消</div>
                    </div>
                    <div class="order-content">
                        <div class="order-dishes">豆浆 × 1、包子 × 2、油条 × 1</div>
                        <div class="order-price">
                            <small>共4件商品 未支付</small>
                            ¥22
                        </div>
                    </div>
                    <div class="order-footer">
                        <button class="order-btn">删除订单</button>
                        <button class="order-btn primary">再来一单</button>
                    </div>
                </div>
            </div>
        </div>

        <div class="bottom-nav">
            <a href="index.html" class="nav-item">
                <i class="bi bi-house"></i>
                <span>首页</span>
            </a>
            <a href="order.html" class="nav-item active">
                <i class="bi bi-receipt"></i>
                <span>订单</span>
            </a>
            <a href="vip.html" class="nav-item">
                <i class="bi bi-star"></i>
                <span>会员</span>
            </a>
            <a href="user.html" class="nav-item">
                <i class="bi bi-person"></i>
                <span>我的</span>
            </a>
        </div>
    </div>

    <script>
        // 为订单标签添加点击事件
        document.querySelectorAll('.tab-item').forEach(tab => {
            tab.addEventListener('click', function() {
                document.querySelector('.tab-item.active').classList.remove('active');
                this.classList.add('active');
            });
        });
    </script>
</body>
</html>
